const axios = require('axios');



const get = (url, params) => {
  return axios.get(url, { params })
}


const post = (url, params) => {
  console.log(url, params)
  // return axios({
  //   method: 'post',
  //   url: url,
  //   params
  // });
  return axios.post(url, params);
}

module.exports = {
  get,
  post
}